<?php

//屏蔽错误
//error_reporting( 0 );
//引入操作类
require_once '../inc/medoo.php';
//引入数据库
require_once '../inc/conn.php';
//引入配置
require_once '../inc/config.php';
//查询
//$datas = $database->select(dbtable0, "*",[""=>$]);
//foreach($datas as $data)

// 获取传递
$z000=$_GET['id']; //网址参数
    //验证
    //echo "网址参数:".$z000." | ";

//查询数据
$datas = $database->select(dbtable0, "*" ,[ //<!-- +++++++++++++++修改+++++++++++++++ -->
  "w000" => $z000
]);
foreach($datas as $data)
    //验证
      // echo "数据值A:" . $data["w000"]." | ";
      // echo "数据值B:" . $data["w001"]." | ";
      // echo "数据值C:" . $data["w002"]." | ";
      // echo "数据值D:" . $data["w003"]." | ";
      // echo "数据值E:" . $data["w004"]." | ";
?>

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../inc/layui/css/layui.css" media="all">
</head>

<body>
<?php include("../inc/head.php"); ?>
  
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>修改<?php echo tabname0 ?></legend> <!-- +++++++++++++++修改+++++++++++++++ -->
</fieldset>
<form class="layui-form layui-form-pane" action="xiugaiing.php" method="post">
<div class="layui-form-item">
      <label class="layui-form-label"><?php echo b000?></label> <!-- +++++++++++++++修改+++++++++++++++ -->
      <div class="layui-input-block">
        <input type="text" name="y000" autocomplete="off" value=<?php echo $data["w000"]; ?> class="layui-input">   <!-- 不得设置disabled否则无法获取 -->
      </div>
  </div>
  <div class="layui-form-item">
      <label class="layui-form-label"><?php echo b001?></label>
      <div class="layui-input-block">
        <input type="text" name="y001" autocomplete="off" value=<?php echo $data["w001"]; ?> class="layui-input" disabled=true>
      </div>
  </div>
  <div class="layui-form-item">
      <label class="layui-form-label"><?php echo b002?></label>
      <div class="layui-input-block">
        <input type="text" name="y002" autocomplete="off" value=<?php echo $data["w002"]; ?> class="layui-input" disabled=true>
      </div>
  </div>
  <div class="layui-form-item">
      <label class="layui-form-label"><?php echo b003?></label>
      <div class="layui-input-block">
        <input type="text" name="y003" autocomplete="off" value=<?php echo $data["w003"]; ?> class="layui-input" disabled=true>
      </div>
  </div>
  <div class="layui-form-item">
      <label class="layui-form-label"><?php echo b004?></label>
      <div class="layui-input-block">
        <input type="text" name="y004" autocomplete="off" value=<?php echo $data["w004"]; ?> class="layui-input" disabled=true>
      </div>
  </div>
<!-- ******************************************************************************************* -->
  <div class="layui-form-item">
    <label class="layui-form-label"><?php echo b010?></label>
    <div class="layui-input-block">
      <input type="text" name="y100" autocomplete="off" value=<?php echo $data["w100"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
	<label class="layui-form-label"><?php echo b011?></label>
    <div class="layui-input-block">
      <input type="text" name="y101" autocomplete="off" value=<?php echo $data["w101"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b012?></label>
    <div class="layui-input-block">
      <input type="text" name="y102" autocomplete="off" value=<?php echo $data["w102"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b013?></label>
    <div class="layui-input-block">
      <input type="text" name="y103" autocomplete="off" value=<?php echo $data["w103"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b014?></label>
    <div class="layui-input-block">
      <input type="text" name="y104" autocomplete="off" value=<?php echo $data["w104"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b015?></label>
    <div class="layui-input-block">
      <input type="text" name="y105" autocomplete="off" value=<?php echo $data["w105"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b016?></label>
    <div class="layui-input-block">
      <input type="text" name="y106" autocomplete="off" value=<?php echo $data["w106"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b017?></label>
    <div class="layui-input-block">
      <input type="text" name="y107" autocomplete="off" value=<?php echo $data["w107"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b018?></label>
    <div class="layui-input-block">
      <input type="text" name="y108" autocomplete="off" value=<?php echo $data["w108"]; ?> class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label"><?php echo b019?></label>
    <div class="layui-input-block">
      <input type="text" name="y109" autocomplete="off" value=<?php echo $data["w109"]; ?> class="layui-input">
    </div>
  </div>  
  <div class="layui-form-item">
    <button class="layui-btn" lay-submit="" lay-filter="demo2">提 交</button>
  </div>
</form>

<?php include("../inc/foot.php"); ?>

</body>
</html>